/**
 * 数组拼接
 * @param arr
 * @returns {string}
 */
const arrJoin = function (arr) {
    let str = "";
    for (let i = 0; i < arr.length; i++) {
        str += arr[i];
        str += ',';
    }
    let substr = str.substr(0, str.length - 1);
    return substr;
}
/**
 * 字符串按照逗号切割
 * @param str
 * @returns {*}
 */
const arrSplit = function (str) {
    let arr = str.split(",");
    return arr;
}

export default {
    arrJoin,
    arrSplit
}